import request from "@/utils/request";

/**
 * 分页查询权限
 * @param {*} obj 条件
 */
export function getPermissionTable(obj) {
  return request({
    url: "/per",
    method: "get",
    params: obj,
  });
}

/**
 * 新增一条权限
 * @param {*} obj 权限信息
 */
export function insertOnePermission(obj) {
  return request({
    url: "/per",
    method: "post",
    data: obj,
  });
}

//批量删除权限
export function deletePermissions(ids) {
  return request({
    url: "/per",
    method: "delete",
    data: ids,
  });
}
